Ext.define("Skood.view.role.RoleGrid",{
	extend:"Ext.grid.Panel",
	alias:'widget.roleGrid',
	//xtype:'roleGrid',
	store:'RoleStore',
	selModel:Ext.create('Ext.selection.CheckboxModel'),
	columnLines:true,
	height:500,
	initComponent:function(){
		var me = this;
		var required = '<span style="color:red;font-weight:bold" data-qtip="Required">*</span>';
		
		Ext.applyIf(me,{
			columns:[
				{header:'角色',dataIndex:'name'},
				{header:'描述',dataIndex:'description'},
				{header:'创建日期',dataIndex:'createdDate',renderer : Ext.util.Format.dateRenderer('Y-m-d')}
			],
			dockedItems:[{
				xtype:'pagingtoolbar',
				dock:'bottom',
				store:'RoleStore',
				displayInfo:true
			}]
		});
		
		me.callParent(arguments);
		this.store.loadPage(1);
	}
});